FROM python:3.9
COPY ./requirements.txt /root/
WORKDIR /root/
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

EXPOSE 7900

ENV BASE_DIR=/home/mx_notices

ENV DJANGO_ENV=pro
COPY . ${BASE_DIR}
WORKDIR ${BASE_DIR}
CMD ["uwsgi","--ini","uwsgi.ini"]